<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="__JQ__/jquery.cityselect.js"></script>
    <script src="__JQ__/city.min.js"></script>
</head>
    <form action="<{:U('doEditStudent')}>" method="post" enctype="multipart/form-data">
        <div class="row">
            <table>
                <thead>
                <input type="hidden" value="<{$_GET.student_id}>" name="student_id">
                <tr>
                    <td>姓名</td><td><input name="sname" class="es" value="<{$user[0].sname}>"  type="text"></td>
                    <td>手机</td><td><input name="mtel" class="es" value="<{$user[0].mtel}>"  type="text"></td>
                    <td rowspan="3"><img style="width:350px" src="<{$user[0].lg_photo}>">
                        <input type="file" class="es" name="photo"></td>
                </tr>
                <tr>
                    <td>备用手机</td><td><input name="btel" class="es" value="<{$user[0].btel}>"  type="text"></td>
                    <td>身份证</td><td><input type="text"class="es" name="id_card"></td>
                </tr>
                <tr>
                    <td>年龄</td><td><input name="age" class="es" value="<{$user[0].age}>" type="text"></td>
                    <td>固定电话</td><td><input name="ftel" class="es" value="<{$user[0].ftel}>" type="text"></td>
                </tr>
                <tr>
                    <td>性别</td><td><input name="sex" class="es" value="<{$user[0].sex}>" type="text"></td>
                    <td>邮箱</td><td><input name="email" class="es" value="<{$user[0].mail}>" type="text"></td>
                </tr>
                <tr>
                    <td>现居地</td>
                    <td id="city1">
                        <select name="live_prov" class="prov"></select>
                        <select name="live_city" class="city" value="<{$user[0].live_city}>"></select>
                        <select name="live_dist" class="dist"value="<{$user[0].live_dist}>"></select>
                        <input type="text" name="live_addr"placeholder="具体地址">
                        <input type="text" placeholder="<{$user[0].live_prov}><{$user[0].live_city}><{$user[0].live_dist}><{$user[0].live_addr}>" disabled>
                    </td>
                    <td>家庭住址</td>
                    <td id="city">
                        <select name="home_prov" class="prov"></select>
                        <select name="home_city" class="city" value="<{$user[0].home_city}>"></select>
                        <select name="home_dist" class="dist"value="<{$user[0].home_dist}>"></select>
                        <input type="text" name="home_addr" placeholder="具体地址">
                        <input type="text" placeholder="<{$user[0].home_prov}><{$user[0].home_city}><{$user[0].home_dist}><{$user[0].home_addr}>" disabled>
                    </td>
                </tr>
                <tr>
                    <td>密码</td><td><input name="pwd" class="es" value="<{$user[0].pwd}>" type="text"></td>
                    <td>QQ</td><td><input name="qq" class="es" value="<{$user[0].qq}>" type="text"></td>

                </tr>
                <tr>
                    <td>学校</td><td><input name="school" class="es" value="<{$user[0].school}>" type="text"></td>
                    <td>学历</td><td><input name="education" class="es" value="<{$user[0].education}>" type="text"></td>
                </tr>
                </thead>


                <tr>
                    <td colspan="5" style="text-align: center;padding-top:2%;">
                        <input class="button info tiny radius" type="submit" value="修改">
                        <a href="<{:U(index)}>" class="button info tiny radius">返回</a>
                    </td>
                </tr>


            </table>
        </div>
    </form>

    <script>
        $("#city").citySelect();
        $("#city1").citySelect();

    </script>
